package com.neouton.crm.op.mapper;

import com.neouton.crm.op.entity.SalesOpportunityBackVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 巾凡
* @description 针对表【sales_opportunity_back(机会点备份表)】的数据库操作Mapper
* @createDate 2023-02-27 11:00:48
* @Entity com.neouton.crm.op.entity.SalesOpportunityBack
*/
@Mapper
public interface SalesOpportunityBackMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SalesOpportunityBackVO record);

    int insertBackInfo(Integer id);

    int insertSelective(SalesOpportunityBackVO record);

    SalesOpportunityBackVO selectByPrimaryKey(Long id);

    SalesOpportunityBackVO queryHistoryOpportunityByApprovalId(@Param("workId")Integer workId);

    int updateByPrimaryKeySelective(SalesOpportunityBackVO record);

    int updateByPrimaryKey(SalesOpportunityBackVO record);

}
